Fix some GtkComboBoxText problems
authorMatthias Clasen <mclasen@redhat.com>
Sat, 16 Oct 2010 12:17:34 +0000 (08:17 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 16 Oct 2010 12:17:34 +0000 (08:17 -0400)
We must use entry-text-column explicitly to 0, since it defaults to -1.

gtk/gtkcomboboxtext.c

index 578b4dfdd67693d8be151ccc46bb724f82879943..cd4a0b0725ad3d238db431902e90dd0d8218a540 100644 (file)
@@ -78,7 +78,9 @@ gtk_combo_box_text_init (GtkComboBoxText *combo_box)
 GtkWidget *
 gtk_combo_box_text_new (void)
 {
-  return g_object_new (GTK_TYPE_COMBO_BOX_TEXT, NULL);
+  return g_object_new (GTK_TYPE_COMBO_BOX_TEXT,
+                       "entry-text-column", 0,
+                       NULL);
 }